from django.db import models


# Create your models here.

class NatRoom(models.Model):
    name = models.CharField(max_length=64, null=False, blank=False)
    owner = models.CharField(max_length=32, null=False, blank=False, unique=True)
    id = models.CharField(max_length=32, null=False, blank=False, unique=True, primary_key=True)
    public = models.BooleanField(default=True)

    class Meta:
        indexes = [
            models.Index(fields=['owner'], name='owner_index')
        ]
